<template>

    <a-card :bordered="false">
        <a-page-header title="计算属性(computed)"/>
         <LAceEditor @change="onComputedChange" :content="content" height="600px" theme="tomorrow_night_bright" lang="json"></LAceEditor>
    </a-card>




    
</template>

<script>


import {SysMixin} from '@/mixins/SysMixin'
import defaultSettings from '@/config/defaultSettings'
import LAceEditor from '@/components/lt/LAceEditor'

export default {
    name:'pageComputed',
    components:{LAceEditor},
    mixins:[SysMixin],
    props:{
        SysPage:{
            type:Object,
            default:()=>{},
            required:true
        }
      
    },
    data(){
        return{
            defaultSettings,
            title:'',
            content:this.SysPage.echoData.code.computed,
        }
    },

    methods:{
      
        onComputedChange(c){
            this.SysPage.echoData.code.computed=c
        },
       
       
    }

}
</script>

